package momo.pagri.util;

import org.apache.commons.math.MathException;
import org.apache.commons.math.distribution.AbstractDistribution;
import org.apache.commons.math.distribution.ContinuousDistribution;

public class ZipfDistributionAdapter extends AbstractDistribution implements ContinuousDistribution {

	private ZipfDistribution zipf;
	
	public ZipfDistributionAdapter(ZipfDistribution zipf) {
		super();
		this.zipf = zipf;
	}

	public double inverseCumulativeProbability(double p)
			throws MathException {
		return zipf.inverseCumulativeProbability(p);
	}

	public double cumulativeProbability(double p) throws MathException {
		return zipf.cumulativeProbability(p);
	}

}
